package ee.ttu.rakarh.commands;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

import ee.ttu.rakarh.model.data.dao.UserAuthDAO;
import ee.ttu.rakarh.model.data.dao.UserAuthDAOImpl;
import ee.ttu.rakarh.model.data.entities.User;

public class Logout implements Command {
	private static final Logger LOG = Logger.getLogger(Logout.class);

	@Override
	public Boolean execute(HttpServletRequest request,
			HttpServletResponse response) {
		Boolean result = false;
		
		LOG.info("logout");
		request.getSession().removeAttribute("username");
		request.getSession().removeAttribute("password");
		
		return result;
	}

}
